package com.cortex.pineapple.view;


import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ListView;
import android.widget.ScrollView;

public class CortexListView extends ListView {

	private boolean isStopScroll;

	public CortexListView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public CortexListView(Context context) {
		super(context);
	}

	public void setStopScroll(boolean isStopScroll){
		this.isStopScroll = isStopScroll;
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		if(isStopScroll){
			return false;
		}
		return super.onInterceptTouchEvent(ev); 
	}
}
